home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / msh20.zip / MSHFILES.ZIP / CONFIG.MSH < prev    next >
Text File  |  1992-03-29  |  5KB  |  140 lines

  1. |  CONFIG.MSH  is read first by MSH when it is invoked without a filename
  2. |  on the command line.
  3. |
  4. |      DEFAULT CONFIGURATION FILE FOR MI-SHELL
  5. |
  6. |  We have tried to group in this file everything that you might need to
  7. |  change. When installing MSH you should first go through this file and change
  8. |  things appropriately for your setup.
  9. |
  10. |              ┌──────────────────────────┐
  11. |              │ editor, browser, drives  │
  12. |              └──────────────────────────┘
  13. |
  14. "mwe "  editor!        | define here your editor -- MWE is in the "goodies"
  15. "more " browser!       | define here your browser
  16. "CD"    fixed_drives!  | define your fixed drives
  17. "AB"    floppy_drives! | define your floppy drives
  18. |
  19. |              ┌──────────────────┐
  20. |              │ Load Other files │
  21. |              └──────────────────┘
  22. |
  23. true berk!            | change if you don't own the Berkeley Utilities
  24. true delta!           | change if you don't own Delta
  25. true berk_cpmvrm!     | change if you don't want MSH to use the Berkeley's
  26.                       | cp,rm,mv (given in the "goodies") for deleting,
  27.                       | copying and moving but want to use the MSDOS commands
  28.  
  29. |  two definitions which allow to load script files from the place where
  30. |  MSH.EXE is, and then load all configuration scripts
  31. |
  32. (prog_pathname "\\" cutlast drop "\\" &)prog_dir!
  33. (prog_dir swap&read#)loaddefs!
  34. |
  35. "stddefs.msh"loaddefs | reads the standard definitions. Lot of code here if
  36.                       | you want to learn the MSH script language.
  37. "berk.msh"loaddefs    | load Berkeley defs (you should keep this even if you
  38.                       | don't have the Berkeley Utilities: this will give
  39.               | you some information about our products).
  40. "keybind.msh"loaddefs | load the key bindings. Look into this file if you want
  41.                       | to change key bindings.
  42. "ext.msh"loaddefs     | load extension definitions. You might want to change
  43.                       | some definitions or add some.
  44. "menu.msh"loaddefs    | load the menus. The place to look if you want to change
  45.                       | the menus.
  46. "zip.msh"loaddefs     | Actions defined when you are inside a zip archive
  47. |
  48. |
  49. |              ┌──────────────────┐
  50. |              │ Video Attributes │
  51. |              └──────────────────┘
  52. |
  53. | in the line below, replace "c_blue.msh" by the name
  54. | of one of the available files describing attributes:
  55. |       c_mda.msh                   for monochrome displays
  56. |       c_pcga.msh                  for plasma cga displays
  57. |       c_blue.msh, c_blue1.msh,
  58. |       c_blue2.msh, c_white.msh    various possibilities
  59. |                                   for color displays
  60. |
  61. "c_blue.msh"loaddefs  | load blue color
  62.                       | set attributes
  63. e_att alert_att!
  64. |
  65. |              ┌─────────┐
  66. |              │ "magic" │
  67. |              └─────────┘
  68. |
  69. |                    
  70. |  next line defines the place for "magic" swap files
  71. |  you need about 200K free in the swap directory or 200K of
  72. |  XMS (extended memory in 80286 and better computers) to use magic
  73. |
  74. (prog_dir)tmp_dir!     | put swap files in same directory as MSH.EXE
  75. |"G:\\"tmp_dir!        | this is better if G: is a RAM disk and you have no XMS
  76. |
  77. |
  78. |              ┌────────────────┐
  79. |              │ Initial actions│
  80. |              └────────────────┘
  81. |
  82. "menu_line"isdefined  | detects if this file executed for 1st time
  83.                       | (you don't want to create additional panels
  84.               |  when you hit F9)
  85. (
  86. |
  87. |1 menu_line!          | start with the 2 line top menu
  88. 0 menu_line!          | start with the 1 line top menu
  89. |
  90. |
  91. |               display directory panels & main menu
  92. |               there is some complicated arithmetic in order to start with
  93. |               3 panels when you have 132 columns!
  94. |
  95.  linescols 40 / nb_panels! drop | nb_panels gets 2 if 80 cols, 3 if 132 cols
  96.  cwd "*.*" makename dup panel.pattern! | start with pattern:
  97.                                        |  current_directory/*.*
  98.  1 cnt!             | loop from 1 to nb_panels-1 (one panel already exists)
  99.  (cnt nb_panels <)
  100.  (cnt 1+ cnt! dup panel.install cur_pn!)
  101.  while 
  102.  drop
  103.  cur_pn 1+ nb_panels- cur_pn! next_panel | we were on last panel, goback to 1st
  104.  side_by_side wide_narrow | position & size, and make first panel wide
  105. |
  106. |                   turn the drive menu on
  107. |
  108. drive_menu       | if you get rid of this line, please modify hide_all
  109.                  | in stddefs.msh to not refer to it.
  110. )ifnot
  111. |
  112. false cmdlist!   | clear the command line
  113. |
  114. show_menu magic_menu  | show the main menu and the 'magic' indicator
  115. |
  116. | put here list of commands to be always executed with swapping to disk
  117. | enabled (those which need lots of memory)
  118. |
  119. "
  120. tex
  121. delta
  122. make
  123. td386
  124. win
  125. grasprt
  126. vp
  127. "magic_list!
  128. |
  129. tmp_dir "spaa.aaa" makename unlink | delete a previous swap file in case some
  130.                           | program crashed when swapping to disk was enabled
  131. |
  132. clock            | put up the time in the upper right corner
  133. |
  134. | we recommend that you put in the file `personal.msh' the definitions
  135. | that you add to MSH standard definitions. When you get a new release
  136. | of MSH with changes in the configuration files, it will be easier to
  137. | update it then if your changes have been cleanly isolated
  138. "personal.msh"loaddefs
  139. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  140.